package com.ihr360.simpleexpr;


public class SimpleExprToken {
    public static final SimpleExprToken OPEN_BRACE = new SimpleExprToken(
            SimpleExprTokenType.OpenBrace, "{");
    public static final SimpleExprToken CLOSE_BRACE = new SimpleExprToken(
            SimpleExprTokenType.CloseBrace, "}");

    public final SimpleExprTokenType type;
    public final String val;

    public SimpleExprToken(SimpleExprTokenType type, String val) {
        this.type = type;
        this.val = val;
    }

    @Override
    public String toString() {
        return type.toString() + ":" + val;
    }
}